﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WeigherMoudel
{
    public interface ICommunication
    {
        string Name { get; set; }
        event Action<string> OnReceiveData;

        bool IsOpen { get; }

        void Open(int mode);



        void SendMessage(string cmd);

        string SendBackMessageInstant(string cmd, int miltimeout);

        IPort Setting { get; set; }
    }
}

